NativeFrame

interface NativeFrame

A Frame or Depth created by VisionCamera on Android, backed by a CameraX ImageProxy (port of V5's public/NativeFrame.kt).

This is an extension point for plugin modules, which read the frame's native buffer through it.

Cast a Frame to a NativeFrame to access its image, e.g. for ML Kit:

val image = (frame as NativeFrame).image.image

Properties

Link copied to clipboard
abstract val image: ImageProxy

The CameraX ImageProxy backing this Frame. It is closed when the Frame is disposed.